import req from '@/utils/request'
const baseURL = process.env.VUE_APP_BASE_URL
export function getList(params) {
    return req({
        method: 'get',
        url: baseURL + '/superlink/api/devices/boxs',
        params
    })
}
export function delToken(token) {
    return req({
        method: 'delete',
        url: baseURL + `/superlink/api/devices/box/delete/${token}`,
    })
}
export function createForm(data) {
    return req({
        method: 'post',
        url: baseURL + '/superlink/api/devices/box/create',
        data
    })
}
export function updateForm(data, token) {
    return req({
        method: 'put',
        url: baseURL + `/superlink/api/devices/box/update/${token}`,
        data
    })
}

export function getDetails(token) {
    return req({
        method: 'get',
        url: baseURL + `/superlink/api/devices/box/${token}`,
    })
}